﻿using System.Web;
using System.Web.Mvc;
using LakeSide.Web.Filter;

namespace LakeSide.Web
{
    public class FilterConfig
    {
        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            //注册全局Action,Result过滤器
            filters.Add(new ActionAndResultFilter());

            //注册全局异常过滤器，在任何Controller中出异常都会触发
            filters.Add(new ExceptionFilter());

            filters.Add(new HandleErrorAttribute());
        }
    }
}